package org.abio.XasML
{
	import org.abio.XasML.reflect.ClassInfo;
	import org.abio.XasML.reflect.MetadataInfo;
	
	public class Global
	{
		static private var _bCreating:Boolean=false;
		static private var _Singleton:Global=null;
		static private function getInstance():Global{
			return Global._Singleton;
		}

		static public function initialize():void{
			if(Global._Singleton==null){
				Global._bCreating=true;
				Global._Singleton=new Global();
				Global._bCreating=false;
			}
		}

		public function Global()
		{
			if(Global._bCreating==false){	throw('global can only instantiate by initialize');}
			else{
			}
		}
	}
}